package cz.uvn.orthopedy.client.ui;

import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

import cz.uvn.orthopedy.client.LoginInfo;

public class LoginPanel extends VerticalPanel {

	private Label loginLabel = new Label("Please sign in to your Google Account to access the Operation Journal application.");
	private Anchor signInLink = new Anchor("Sign In");
	
	public LoginPanel(LoginInfo loginInfo) {
		signInLink.setHref(loginInfo.getLoginUrl());
		add(loginLabel);
		add(signInLink);
	}

}
